﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = Weapons
		Group                          = WeaponTunings
		ModuleClass                    = MissileLaunchers
		Module                         = ait-dipris propellant missile launcher tuning prototype
		CpuUsage                       = 22.00 TF
		ReactorUsage                   = 4.00 RP
		Type                           = Passive
		Slot                           = Head
		TechnologicalLevel             = T2P
		Mass                           = 75.00 kg
		PackedVolume                   = 0.25 U
		Volume                         = 0.50 U
		Damage                         = 5.00 %
		MissileLauncherCycleTime       = -6.00 %
		CriticalHitChance              = 2.00 %
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// AIT-Dipris Propellant missile launcher tuning prototype module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:57</remarks>
    public sealed class AitDiprisPropellantMissileLauncherTuningPrototype : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="AitDiprisPropellantMissileLauncherTuningPrototype"/> class.
        /// </summary>
        public AitDiprisPropellantMissileLauncherTuningPrototype()
            : base(
            "AIT-Dipris Propellant missile launcher tuning prototype",
            "",
            ModuleMetaGroupsEnum.Weapons,
            ModuleGroupsEnum.WeaponTunings,
            TechnologyLevelsEnum.Level2|TechnologyLevelsEnum.Prototype,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(CpuUsage<double>),22.00),
				new LazyFeature(typeof(ReactorUsage<double>),4.00),
				new LazyFeature(typeof(ModuleMass<double>),75.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 75.00 ){ IsVisible = false },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.SmallMissileLauncherCycleTime, -0.06 ){ Unit = UnitsEnum.Percentage, DisplayName ="Small missile launcher cycle time" },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.MediumMissileLauncherCycleTime, -0.06 ){ Unit = UnitsEnum.Percentage, DisplayName ="Medium missile launcher cycle time" },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.SmallMissileDamage, 0.05 ){ Unit = UnitsEnum.Percentage, DisplayName ="Small missile damage" },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.MediumMissileDamage, 0.05 ){ Unit = UnitsEnum.Percentage, DisplayName ="Medium missile damage" },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.CriticalHitChance, 0.02 ){ Unit = UnitsEnum.Percentage, DisplayName ="Critical hit chance" }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Passive; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Head; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}